# 定义函数
def printtme(str):
    print(str)
    return
# 调用函数
printtme("函数调用")
print("===================================")
def ChangeInt(a):
    a = 10
b = 2
ChangeInt(b)
# 结果是 2
print(b)
print("===================================")
def changeme(mylist):
    mylist.append(1)
    print("函数内取值：", mylist)
    return
mylist = [10, 20, 30]
changeme(mylist)
print("函数外取值:", mylist)
print("===================================")
def printinfo(arg1, *vartuple):
    print("输出：")
    print(arg1)
    for var in vartuple:
        print(var)
    return
printinfo(10)
printinfo(70, 60, 50)
print("===================================")

